home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 1999 November / maximum-cd-1999-11.iso / Feature / DR DOS / dr703.exe / FASTHELP.BAT < prev    next >
Encoding:
DOS Batch File  |  1998-12-24  |  3.5 KB  |  114 lines

  1. @ ECHO off
  2.   REM FASTHELP R1.01   FASTHELP utility.
  3.   REM Copyright (c) 1997,1998 Caldera, Inc.  All rights reserved.
  4.   REM
  5.   REM Last edit: 98-01-12 MPAUL
  6.   REM
  7.  
  8.   FOR %%x IN (%1 %2 %3 %4 %5 %6 %7 %8 %9) DO IF "/H"=="%%x" GOTO help
  9.   FOR %%x IN (%1 %2 %3 %4 %5 %6 %7 %8 %9) DO IF "-H"=="%%x" GOTO help
  10.   FOR %%x IN (%1 %2 %3 %4 %5 %6 %7 %8 %9) DO IF "/h"=="%%x" GOTO help
  11.   FOR %%x IN (%1 %2 %3 %4 %5 %6 %7 %8 %9) DO IF "-h"=="%%x" GOTO help
  12.   FOR %%x IN (%1 %2 %3 %4 %5 %6 %7 %8 %9) DO IF "/HELP"=="%%x" GOTO help
  13.   FOR %%x IN (%1 %2 %3 %4 %5 %6 %7 %8 %9) DO IF "-HELP"=="%%x" GOTO help
  14.   FOR %%x IN (%1 %2 %3 %4 %5 %6 %7 %8 %9) DO IF "/help"=="%%x" GOTO help
  15.   FOR %%x IN (%1 %2 %3 %4 %5 %6 %7 %8 %9) DO IF "-help"=="%%x" GOTO help
  16.   FOR %%x IN (%1 %2 %3 %4 %5 %6 %7 %8 %9) DO IF "/Help"=="%%x" GOTO help
  17.   FOR %%x IN (%1 %2 %3 %4 %5 %6 %7 %8 %9) DO IF "-Help"=="%%x" GOTO help
  18.   IF "/?"=="%1" GOTO help
  19.   IF "-?"=="%1" GOTO help
  20.   IF "/?"=="%2" GOTO help
  21.   IF "-?"=="%2" GOTO help
  22.   IF "/?"=="%3" GOTO help
  23.   IF "-?"=="%3" GOTO help
  24.   IF "/?"=="%4" GOTO help
  25.   IF "-?"=="%4" GOTO help
  26.   IF "/?"=="%5" GOTO help
  27.   IF "-?"=="%5" GOTO help
  28.   IF "/?"=="%6" GOTO help
  29.   IF "-?"=="%6" GOTO help
  30.   IF "/?"=="%7" GOTO help
  31.   IF "-?"=="%7" GOTO help
  32.   IF "/?"=="%8" GOTO help
  33.   IF "-?"=="%8" GOTO help
  34.   IF "/?"=="%9" GOTO help
  35.   IF "-?"=="%9" GOTO help
  36.   IF "?"=="%1" GOTO help
  37.  
  38.   IF NOT "4"=="%@Eval[2+2]%" GOTO start
  39.  
  40.   IF NOT ""=="%/%" FOR %%x IN (%1 %2 %3 %4 %5 %6 %7 %8 %9) DO IF "%/%H"=="%%x" GOTO help
  41.   IF NOT ""=="%/%" FOR %%x IN (%1 %2 %3 %4 %5 %6 %7 %8 %9) DO IF "%/%h"=="%%x" GOTO help
  42.   IF NOT ""=="%/%" FOR %%x IN (%1 %2 %3 %4 %5 %6 %7 %8 %9) DO IF "%/%HELP"=="%%x" GOTO help
  43.   IF NOT ""=="%/%" FOR %%x IN (%1 %2 %3 %4 %5 %6 %7 %8 %9) DO IF "%/%help"=="%%x" GOTO help
  44.   IF NOT ""=="%/%" FOR %%x IN (%1 %2 %3 %4 %5 %6 %7 %8 %9) DO IF "%/%Help"=="%%x" GOTO help
  45.   IF NOT ""=="%/%" IF "%/%?"=="%1" GOTO help
  46.   IF NOT ""=="%/%" IF "%/%?"=="%2" GOTO help
  47.   IF NOT ""=="%/%" IF "%/%?"=="%3" GOTO help
  48.   IF NOT ""=="%/%" IF "%/%?"=="%4" GOTO help
  49.   IF NOT ""=="%/%" IF "%/%?"=="%5" GOTO help
  50.   IF NOT ""=="%/%" IF "%/%?"=="%6" GOTO help
  51.   IF NOT ""=="%/%" IF "%/%?"=="%7" GOTO help
  52.   IF NOT ""=="%/%" IF "%/%?"=="%8" GOTO help
  53.   IF NOT ""=="%/%" IF "%/%?"=="%9" GOTO help
  54.  
  55. :start
  56. @ IF "4"=="%@Eval[2 + 2]%" GOTO 4dos
  57.   IF NOT ""=="%Am_Pm%" GOTO drdos
  58.   IF "DRDOS"=="%Os%" GOTO drdos
  59.   IF "OPENDOS"=="%Os%" GOTO drdos
  60.   IF "NWDOS"=="%Os%" GOTO drdos
  61.   IF "PALMDOS"=="%Os%" GOTO drdos
  62.   IF "NetWare PalmDOS"=="%Os%" GOTO drdos
  63.   GOTO else
  64. :drdos
  65.   IF NOT ""=="%1" GOTO detailed
  66. @ /?
  67.   GOTO dosbook
  68.  
  69. :detailed
  70. @ CALL %1 /? %2 %3 %4 %5 %6 %7 %8 %9
  71. :dosbook
  72.   ECHO.
  73.   ECHO For more detailed information refer to the online documentation DOSBOOK.
  74.   GOTO end
  75.  
  76. :else
  77.   IF NOT "DRDOS"=="%Os%" GOTO other
  78.   IF "1.0"=="%Ver%" GOTO drdos
  79.   IF "6.0"=="%Ver%" GOTO drdos
  80.   IF "7"=="%Ver%" GOTO drdos
  81.  
  82. :other
  83.   REM This could fail...
  84. @ CALL fasthelp.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
  85.   GOTO end
  86.  
  87. :4dos
  88.   IF NOT ""=="%1" GOTO 4dosdetl
  89. @ ?
  90.   GOTO 4doshelp
  91.  
  92. :4dosdetl
  93. @ CALL %1 /? %2 %3 %4 %5 %6 %7 %8 %9
  94. :4doshelp
  95.   ECHO For more detailed information press F1 or enter HELP.
  96.   GOTO end
  97.  
  98. :help
  99.   ECHO FASTHELP R1.01   FASTHELP utility.
  100.   ECHO Copyright (c) 1997,1998 Caldera, Inc.  All rights reserved.
  101.   ECHO.
  102.   IF "4"=="%@Eval[2+2]%" GOTO help10
  103.   IF ""=="%/%" GOTO help10
  104.   ECHO FASTHELP [%/%H] [command [parameters]]
  105.   GOTO dosbook
  106.  
  107. :help10
  108.   ECHO FASTHELP [/H] [command [parameters]]
  109.   GOTO dosbook
  110.  
  111. :end
  112.   REM Dummy
  113.   REM Dummy
  114.